﻿#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>

//main161：获取文件的属性
int main161()
{
	struct stat s;
	//2.获取文件VampireDiariesFinalSeason10.mp4的属性；
	stat("../../../file/VampireDiariesFinalSeason10.mp4", &s);
	printf("1.结构体s指向的文件VampireDiariesFinalSeason10.mp4字节数大小为：%d\n", s.st_size);//423940138 /1024 =414,005kb

	system("pause");
	return EXIT_SUCCESS;
}